//
//  NavigationHelper.h
//  ocdemo
//
//  Created by mac on 2025/10/12.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface NavigationHelper : NSObject
/**
 获取顶层导航器
 */
+(UINavigationController *) topNavViewController;
/**
 获取主窗口
 */
+(UIWindow *)keyWindow;

/**
 pop 退出
 */
+(void)popViewControllerAnimated:(BOOL)animated;
+(void)popToRootViewControllerAnimated:(BOOL)animated;
+(void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;
+(BOOL)canPopViewController;
+(void)selectTabWithIndex:(NSInteger)index;
@end

NS_ASSUME_NONNULL_END
